user_data = ["www","wyy","wyt","wyu"] # 全部用户
password_data = "888" # 密码统一888
user_data_vip = ["www", "wyy"] # VIP列表
tuichu_data = ['退出']
# 会员用户能查看5次，非用户只能3次。
# 登录错误次数最多为3。
import datetime
time = datetime.datetime.today().weekday()
count = 3
while True:
    count -=1 # 每输一次减一次
    user_name = input("登录帐号：")
    pass_word = input("登录密码：")
    # 1. 判断帐号
    if user_name in user_data:
        if user_name in user_data and user_name in user_data_vip:
            if pass_word == password_data:
                count = 5
                while True:
                 tuichu = input("查询乱填，退出填’退出‘:")
                 if tuichu in tuichu_data:
                    print("退出")
                    break
                 else:
                    if count == 0:
                        print("您的查看机会已耗尽。")
                        break

                    else:
                        count -= 1

                        print("您是会员。")
                        print("您还有", count, "次查看机会")
                        week_time = int(time)
                        # week _time
                        if week_time == 1:
                            print("周一没有课");
                            print("happy");
                            print("sleep")
                        elif week_time == 2:
                            print("周二两节课");
                            print("8-9h5");
                            print("12-13大英")
                        elif week_time == 3:
                            print("周三两节课");
                            print("早八睡大觉");
                            print("12-14创业实践摸鱼")
                        elif week_time == 4:
                            print("3-5python");
                            print("8-9痛苦大英");
                            print("10-11羽毛球")
                        elif week_time == 5:
                            print("4-5ai")
                        else:
                            print("周六周日休息")
            else:
                if count == 0:
                    print("你都输入三次了，还不对，笨死了~~~，别输了，5分钟后再来")
                    break
                else:
                    print("您输入的账号或密码不正确，请重新输入，您还有", count, "次机会~加油~")
        # 登录3次都没成功退出登录
        else:
            if pass_word == password_data:
                count = 3
                while True:
                    tuichu = input("查询乱填，退出填’退出‘:")
                    if tuichu in tuichu_data:
                        print("退出")
                        break
                    else:
                        if count == 0:
                            print("您的查看机会已耗尽。")
                            break

                        else:
                            count -= 1

                            print("您不是会员。")
                            print("您还有", count, "次查看机会")
                            week_time = int(time)
                            # week _time
                            if week_time == 1:
                                print("周一没有课");
                                print("happy");
                                print("sleep")
                            elif week_time == 2:
                                print("周二两节课");
                                print("8-9h5");
                                print("12-13大英")
                            elif week_time == 3:
                                print("周三两节课");
                                print("早八睡大觉");
                                print("12-14创业实践摸鱼")
                            elif week_time == 4:
                                print("3-5python");
                                print("8-9痛苦大英");
                                print("10-11羽毛球")
                            elif week_time == 5:
                                print("4-5ai")
                            else:
                                print("周六周日休息")
            else:
                if count == 0:
                    print("你都输入三次了，还不对，笨死了~~~，别输了，5分钟后再来")
                    break
                else:
                    print("您输入的账号或密码不正确，请重新输入，您还有", count, "次机会~加油~")
    else:
        print("用户名错误")
